package com.recharge.api.exception;

import org.springframework.http.HttpStatus;

/**
 * Exception thrown when client request contains invalid parameters or data
 */
public class InvalidRequestException extends ApiException {

    public InvalidRequestException(String message) {
        super(message, HttpStatus.BAD_REQUEST);
    }

    public InvalidRequestException(String message, String errorCode) {
        super(message, HttpStatus.BAD_REQUEST, errorCode);
    }

    public InvalidRequestException(String message, Throwable cause) {
        super(message, cause, HttpStatus.BAD_REQUEST);
    }

    public InvalidRequestException(String message, String errorCode, Throwable cause) {
        super(message, HttpStatus.BAD_REQUEST, errorCode);
    }
}